import request from "@/utils/request";

const FITNESS_BASE_URL = "/fitness";

/**
 * 获取分页列表
 *
 * @param queryParams 查询参数
 */
export function getPage(queryParams) {
  return request({
    url: `${FITNESS_BASE_URL}/getUserPage`,
    method: "get",
    params: queryParams,
  });
}

export function updateRule(data) {
  return request({
    url: `${FITNESS_BASE_URL}`,
    method: "put",
    data: data,
  });
}

export function getRule(data) {
  return request({
    url: `${FITNESS_BASE_URL}/one`,
    method: "post",
    data: data,
  });
}
